package com.ww.learn.collection

fun nickName(name: String?): String? {
    if (name == "William") {
        return "Bill"
    }
    return name?.reversed()
}

fun main() {
    println("Nickname for William is ${nickName("William")}")
    println("Nickname for Venkat is ${nickName("Venkat")}")
}